import request from '@/utils/request'

export function getapi(current,size) {
  return request({
    url: '/admin/AdmissHistory/getHistory',
    method: 'get',
    params: { current, size }
  })
}

export function addapi(data) {
  return request({
    url: '/admin/AdmissHistory/addHistory',
    method: 'post',
    data
  })
}

export function updateapi(data) {
  return request({
    url: '/admin/AdmissHistory/updateHistory',
    method: 'post',
    data
  })
}

export function deleteapi(schoolId , majorId) {
  return request({
    url: '/admin/AdmissHistory/deleteHistory',
    method: 'get',
    params: { schoolId , majorId }
  })
}
